package cn.kn.triage.sys.dao;

import cn.kn.triage.sys.model.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yinzn
 * @create 2020-10-20 15:23
 */
public interface UserRoleDao {
    @Select("SELECT roleid FROM sys_user_role WHERE userid =#{userId}")
    List<Integer> getRoleByUserId(Integer userId);

    Integer batchInsert(@Param("userRoles") UserRole[] userRoles);
}
